//
//  ViewController.h
//  线程安全问题展示
//
//  Created by sugar on 15/10/21.
//  Copyright (c) 2015年 sugar. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface ViewController : UIViewController
@property(nonatomic,assign)int leftTicketsCount;
//@property(nonatomic,strong)NSThread *threadA,*threadB,*threadC;

@end
//-<NSThread: 0x7fcb32f3ffd0>{number = 3, name = 售票员李鑫}-剩余票数:12
//    -<NSThread: 0x7fcb32f291a0>{number = 2, name = 售票员贾梦丹}-剩余票数:13
//    -<NSThread: 0x7fcb32f2db60>{number = 4, name = 售票员张静怡}-剩余票数:13
//    -<NSThread: 0x7fcb32f291a0>{number = 2, name = 售票员贾梦丹}-剩余票数:10
//    -<NSThread: 0x7fcb32f2db60>{number = 4, name = 售票员张静怡}-剩余票数:9
//    -<NSThread: 0x7fcb32f3ffd0>{number = 3, name = 售票员李鑫}-剩余票数:10
//    -<NSThread: 0x7fcb32f291a0>{number = 2, name = 售票员贾梦丹}-剩余票数:8
//    -<NSThread: 0x7fcb32f3ffd0>{number = 3, name = 售票员李鑫}-剩余票数:8
//    -<NSThread: 0x7fcb32f2db60>{number = 4, name = 售票员张静怡}-剩余票数:8
//    -<NSThread: 0x7fcb32f3ffd0>{number = 3, name = 售票员李鑫}-剩余票数:6
//    -<NSThread: 0x7fcb32f291a0>{number = 2, name = 售票员贾梦丹}-剩余票数:7
//    -<NSThread: 0x7fcb32f2db60>{number = 4, name = 售票员张静怡}-剩余票数:5
//    -<NSThread: 0x7fcb32f3ffd0>{number = 3, name = 售票员李鑫}-剩余票数:4
//    -<NSThread: 0x7fcb32f291a0>{number = 2, name = 售票员贾梦丹}-剩余票数:4
//    -<NSThread: 0x7fcb32f2db60>{number = 4, name = 售票员张静怡}-剩余票数:3
//    -<NSThread: 0x7fcb32f3ffd0>{number = 3, name = 售票员李鑫}-剩余票数:2
//    -<NSThread: 0x7fcb32f3ffd0>{number = 3, name = 售票员李鑫}-剩余票数:0
//    -<NSThread: 0x7fcb32f291a0>{number = 2, name = 售票员贾梦丹}-剩余票数:1
//    -<NSThread: 0x7fcb32f2db60>{number = 4, name = 售票员张静怡}-剩余票数:1
